
		<div class="panel panel-primary" ng-controller="loginCtrl">
			<div class="panel-heading">
				<h1 class="panel-title text-center">我的收藏夹</h1>
			</div>
			<div class="panel-body">
			<div class="row">
				<div class="col-md-12"></div>
					<form class="form-horizontal" name="loginForm">
						<div class="form-group" ng-class="{'has-error':loginForm.email.$dirty && loginForm.email.$invalid && change}">
							<label class="col-md-3 col-md-offset-1 control-label">
	                            用户名：
	                        </label>
	                        <div class="col-md-5 ">
	                            <input type="email" class="form-control" placeholder="使用邮箱登录" ng-model="userInfo.email" name="email" ng-blur="change=true" ng-focus="change=false" required>
	                            <p class="text-danger" ng-show="loginForm.email.$dirty && loginForm.email.$invalid&&change">请输入正确的邮箱</p>
	                        </div>
						</div>
						<div class="form-group">
	                        <label class="col-md-3 col-md-offset-1 control-label">
	                            密码：
	                        </label>
	                        <div class="col-md-5">
	                            <input type="password" class="form-control" placeholder="只能是数字、字母、下划线" ng-model="userInfo.password" name="password" ng-blur="change1=true" ng-focus="change1=false" ng-pattern="/^[A-Za-z0-9_-]*$/" required>
	                            <p class="text-danger" ng-show="loginForm.password.$dirty &&  loginForm.password.$invalid && change1">密码由数字、字母、下划线组成</p>
	                        </div>
	                    </div>
	                    <div class="form-group">
                        <div class="col-md-offset-4 col-md-8">
                            <a ui-sref="list({type:0})" class="btn btn-primary btn-lg" ng-disabled="!(loginForm.password.$valid&&loginForm.email.$valid)">登录</a>
                            <button class="btn btn-default btn-lg" ng-click="setFormData()">注册</button>
                        </div>
                    </div>
					</form>

			</div>
		</div>
